package qianfeng.com.meijiadaka.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by yanshihao on 2017/2/9.
 */

public class AllBean implements Parcelable {
    /**
     * code : 0
     * result : [{"styleId":67,"styleName":"大理石","styleIcon":"http://pic.yilos.com/6910663e4a4914d5b21b81bc6e199f90.png"},{"styleId":73,"styleName":"糖浆胶","styleIcon":"http://pic.yilos.com/6354c40f18de2736a56488973036b456.png"},{"styleId":56,"styleName":"皮草","styleIcon":"http://pic.yilos.com/12a9f48784652623f9466c4db9fafc3f.png"},{"styleId":57,"styleName":"晶石","styleIcon":"http://pic.yilos.com/c455819b56f056c9e6a8f3939369a85c.png"},{"styleId":63,"styleName":"泡泡甲","styleIcon":"http://pic.yilos.com/100ee2f3566356b02e76a5ca112f48f7.png"},{"styleId":65,"styleName":"水染","styleIcon":"http://pic.yilos.com/8f2aab125f577c1130e87c9bebc476e3.png"},{"styleId":66,"styleName":"民族","styleIcon":"http://pic.yilos.com/33692a6893c9dfefa146bb4df04e0b6d.png"},{"styleId":53,"styleName":"腮红","styleIcon":"http://pic.yilos.com/60adc6ab3c51afd1c474d5f60118e65d.png"},{"styleId":58,"styleName":"蕾丝","styleIcon":"http://pic.yilos.com/d816f7bbf9cc0407be1b7a542e3bb575.png"},{"styleId":62,"styleName":"排笔","styleIcon":"http://pic.yilos.com/2759440cdfb41813f330780b9a03c7ad.png"},{"styleId":74,"styleName":"绿松石","styleIcon":"http://pic.yilos.com/a43538a4395eaa96d366e00745b97f7a.png"},{"styleId":52,"styleName":"木纹","styleIcon":"http://pic.yilos.com/b807ec1ba1829a3dc2d267455d253d1b.png"},{"styleId":51,"styleName":"脚趾甲","styleIcon":"http://pic.yilos.com/281a21b24fa9174d2c982b740bdca7e5.png"},{"styleId":49,"styleName":"星空纸","styleIcon":"http://pic.yilos.com/a0c928de355e1224ad2f0fa06b4a2b97.png"},{"styleId":54,"styleName":"人鱼胶","styleIcon":"http://pic.yilos.com/f4f9b112df7e0e13efb104ac94239a34.png"},{"styleId":64,"styleName":"豹纹","styleIcon":"http://pic.yilos.com/fa151c1262475d07536d2c48baafbdf2.png"},{"styleId":40,"styleName":"牛仔","styleIcon":"http://pic.yilos.com/9f11341140a56137cc5625bedc8a415f.png"},{"styleId":48,"styleName":"花卉","styleIcon":"http://pic.yilos.com/213c231d0524e4f89c5b91dbafa1a15c.png"},{"styleId":50,"styleName":"韩式","styleIcon":"http://pic.yilos.com/6b884ef8062d060971d4abe7279e4980.png"},{"styleId":39,"styleName":"魔镜","styleIcon":"http://pic.yilos.com/de9da7778337df79d42af92d46b260a7.png"},{"styleId":42,"styleName":"日式","styleIcon":"http://pic.yilos.com/042a97f0071c887df1eaf7f8b3fe5abc.png"},{"styleId":43,"styleName":"手绘","styleIcon":"http://pic.yilos.com/a76f1a6bc7b6ac2a36625c7a021729e8.png"},{"styleId":44,"styleName":"贴纸","styleIcon":"http://pic.yilos.com/04da44f404c2e635d013c37c2134d28d.png"},{"styleId":45,"styleName":"晕染","styleIcon":"http://pic.yilos.com/118acb8c7f5e6cf7eeec9a173462db8c.png"},{"styleId":46,"styleName":"干花","styleIcon":"http://pic.yilos.com/854be81ddc2f5a40f94398d37e863da0.png"},{"styleId":47,"styleName":"琥珀","styleIcon":"http://pic.yilos.com/fe81f6b3bf8ca28f1536d57f818568a0.png"},{"styleId":20,"styleName":"饰品","styleIcon":"http://pic.yilos.com/b92b11b0792490f75cf7f803faa1bcf3.png"},{"styleId":37,"styleName":"模具","styleIcon":"http://pic.yilos.com/a8f7a62f1bb8639527d4e31632186fac.png"},{"styleId":36,"styleName":"毛呢","styleIcon":"http://pic.yilos.com/2b6d34c5f974f3dcaa1e17efadece3c8.png"},{"styleId":33,"styleName":"简约","styleIcon":"http://pic.yilos.com/fbd3a551579272b1503dcce2d0d1eaab.png"},{"styleId":32,"styleName":"几何","styleIcon":"http://pic.yilos.com/c0af3900ab6f13fd97d20345d4b13eba.jpg"},{"styleId":31,"styleName":"格子","styleIcon":"http://pic.yilos.com/827c87dafa1fd26c94b13571f8a4a024.png"},{"styleId":30,"styleName":"法式","styleIcon":"http://pic.yilos.com/502854206f57f37303583cc618635a35.png"},{"styleId":28,"styleName":"雕花","styleIcon":"http://pic.yilos.com/76e16d93189392df8522be8cfc45f32f.png"},{"styleId":27,"styleName":"玻璃纸","styleIcon":"http://pic.yilos.com/c9266ed4c1e93f610bc382a0cd14c8be.png"},{"styleId":26,"styleName":"亮片","styleIcon":"http://pic.yilos.com/64c1c552e56eb25e3456f77958f133b9.png"},{"styleId":25,"styleName":"可爱","styleIcon":"http://pic.yilos.com/9342e26d3c6e5e81cafcfa7024d913e8.png"},{"styleId":24,"styleName":"渐变","styleIcon":"http://pic.yilos.com/92c9d6fb375252b30fbc2bd3efed1912.png"},{"styleId":60,"styleName":"喷绘","styleIcon":"http://pic.yilos.com/c63048b78ca90077ff139e5de70dd595.png"},{"styleId":61,"styleName":"微雕","styleIcon":"http://pic.yilos.com/9372c8512728870db81cc3a2c6f265f5.png"},{"styleId":72,"styleName":"裸色","styleIcon":"http://pic.yilos.com/7569c3fbd84d14c8a72950ece66bdf1b.png"},{"styleId":23,"styleName":"新娘","styleIcon":"http://pic.yilos.com/82254e3371fafaeb51f9b5ca9bbd3683.png"},{"styleId":71,"styleName":"灰色","styleIcon":"http://pic.yilos.com/bb2f698646ca8b514a1def4d7f30100f.png"},{"styleId":22,"styleName":"纯色","styleIcon":"http://pic.yilos.com/74c84609c5dc97f389b9965ce12a66c3.png"},{"styleId":59,"styleName":"磨砂","styleIcon":"http://pic.yilos.com/bb3883340ee4a3fa439a5a7098f498a2.png"},{"styleId":70,"styleName":"红色","styleIcon":"http://pic.yilos.com/e2b5f7d88a038dd3fbb119dc7c0e9337.png"},{"styleId":21,"styleName":"星空","styleIcon":"http://pic.yilos.com/5048c25c584a732c13da048f26e71a4f.png"},{"styleId":69,"styleName":"紫色","styleIcon":"http://pic.yilos.com/c306b166d274977b94ba687a3a30bac1.png"},{"styleId":55,"styleName":"水晶沙","styleIcon":"http://pic.yilos.com/b58466eff637dda90c9853f7795a2c6c.png"},{"styleId":68,"styleName":"粉色","styleIcon":"http://pic.yilos.com/ce5a9e36ab3b01d5a845fd57753c0d13.png"}]
     */

    private int code;
    private List<ResultBean> result;

    protected AllBean(Parcel in) {
        code = in.readInt();
    }

    public static final Creator<AllBean> CREATOR = new Creator<AllBean>() {
        @Override
        public AllBean createFromParcel(Parcel in) {
            return new AllBean(in);
        }

        @Override
        public AllBean[] newArray(int size) {
            return new AllBean[size];
        }
    };

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> result) {
        this.result = result;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(code);
    }

    public static class ResultBean implements Parcelable {
        /**
         * styleId : 67
         * styleName : 大理石
         * styleIcon : http://pic.yilos.com/6910663e4a4914d5b21b81bc6e199f90.png
         */

        private int styleId;
        private String styleName;
        private String styleIcon;

        protected ResultBean(Parcel in) {
            styleId = in.readInt();
            styleName = in.readString();
            styleIcon = in.readString();
        }

        public static final Creator<ResultBean> CREATOR = new Creator<ResultBean>() {
            @Override
            public ResultBean createFromParcel(Parcel in) {
                return new ResultBean(in);
            }

            @Override
            public ResultBean[] newArray(int size) {
                return new ResultBean[size];
            }
        };

        public int getStyleId() {
            return styleId;
        }

        public void setStyleId(int styleId) {
            this.styleId = styleId;
        }

        public String getStyleName() {
            return styleName;
        }

        public void setStyleName(String styleName) {
            this.styleName = styleName;
        }

        public String getStyleIcon() {
            return styleIcon;
        }

        public void setStyleIcon(String styleIcon) {
            this.styleIcon = styleIcon;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(styleId);
            dest.writeString(styleName);
            dest.writeString(styleIcon);
        }
    }
}
